﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FJERP.DAL;
using FJERP.Model;
using System.Data;

namespace FJERP.BLL
{
    public class EmployeeBLL
    {
        EmployeeDAL dal = new EmployeeDAL();
        /// <summary>
        /// 显示员工信息
        /// </summary>
        /// <returns></returns>
        public string Empoyee_Show()
        {
            return dal.Empoyee_Show();
        }
        /// <summary>
        /// 显示员工信息
        /// </summary>
        /// <returns></returns>
        public List<Employee> Empoyee_Show(int i)
        {
            return dal.Empoyee_Show(i);
        }
        /// <summary>
        /// 根据ID获取信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DataTable Empoyee_Hu(int id)
        {
            return dal.Empoyee_Hu(id);
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        public int Empoyee_Upt(Employee e)
        {
            return dal.Empoyee_Upt(e);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Empoyee_Del(int id)
        {
            return dal.Empoyee_Del(id);
        }
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        public int Empoyee_Add(Employee e)
        {
            return dal.Empoyee_Add(e);
        }
        /// <summary>
        /// 登录方法
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public int login(string name, string pwd)
        {
            return dal.login(name, pwd);
        }
    }
}
